<meta charset="UTF-8"/>
<div class="container">
    <div class="subpage_area">
        <div class="span-18 notopmargin">
            <h2 class="subpage_title colored"><?= $title; ?></h2>
        </div>
        <div class=" right">
            <form class="form-wrapper" method="post" action="<?php echo base_url("index.php/welcome/timkiem"); ?>">
                <input type="text" id="search" name="search" placeholder="Nhập thông tin cần tìm" required >
                <input type="submit" value="TÌM" id="submit" class="btn_search">
            </form>
            <a href="<?php echo base_url("index.php/welcome/vsearchadvance"); ?>" style="float: right;color: blue;">Tìm kiếm nâng cao</a>
        </div>
    </div>
    <div class="span-24 un_grid">
        <!-- Portfolio Items -->
        <ul class="span-24 un_grid" id="portfolio">
            <?php
            foreach ($sanpham as $row) {
                $sphinhanh = $row['hinhanh'];
                $sptensp = $row['tensp'];
                $masp = $row['masp'];
                ?>
                <li class="development">
                    <div class="span-6 hover_img">
                        <a  title=""><img src="<?php echo base_url(); ?>Public/images/sanpham/<?= $sphinhanh ?>" width="210px" height="150px" class="bordered_img last" alt=" "/></a>
                        <div class="hover_img_content">
                            <h4><?= $sptensp ?></h4>
                            <a href="<?php echo base_url("index.php/welcome/show_detailproduct/$masp"); ?>" class="hover_img_content_link2 right"></a>
                            <a href="<?php echo base_url(); ?>Public/images/sanpham/<?= $sphinhanh ?>" rel="prettyPhoto" class="hover_img_content_link3 right"></a>
                        </div>
                    </div>
                </li>
                <?php
            }
            ?> 
        </ul>
        <div class="span-24 separator"></div>
        <div class="span-24 clear">
            <ul class="pagination">
                <?php
                if ($pagination) {
                    echo $pagination->create_links();
                }
                ?>
            </ul>
        </div>
    </div>
</div>